package com.yyys.web.entity;

import org.hibernate.annotations.Type;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by zhengsenwen on 2017/8/11.
 */

@Entity
@IdClass(DRGoodsInfoIdClass.class)
@Table(name = "[FLOW_DRGoodsInfo]")
public class DRGoodsInfo implements Serializable {
    private static final Long serialVersionUID = 1L;

    private Integer drId;
    private String rq;
    private String spId;
    private String spName;
    private Integer spSort;
    private String spClass;
    private String spClassName;
    private Integer spClassSort;
    @Type(type = "decimal")
    private BigDecimal spPrice;

    private String spPic;
    private String spFlavor;
    private Integer sprIndex;
    private Integer czryid;
    @Type(type = "datetime")
    private String czsj;
    private Integer cbId;
    private String mrtj;


    @Id
    @Column(name = "DRID", nullable = false)
    public Integer getDrId() {
        return drId;
    }

    public void setDrId(Integer drId) {
        this.drId = drId;
    }

    @Id
    @Column(name = "RQ", nullable = false)
    public String getRq() {
        return rq;
    }

    public void setRq(String rq) {
        this.rq = rq;
    }

    @Id
    @Column(name = "SPId", nullable = false)
    public String getSpId() {
        return spId;
    }

    public void setSpId(String spId) {
        this.spId = spId;
    }

    @Column(name = "SPName", nullable = false)
    public String getSpName() {
        return spName;
    }

    public void setSpName(String spName) {
        this.spName = spName;
    }

    @Column(name = "SPSort", nullable = false)
    public Integer getSpSort() {
        return spSort;
    }

    public void setSpSort(Integer spSort) {
        this.spSort = spSort;
    }

    @Column(name = "SPClass", nullable = true)
    public String getSpClass() {
        return spClass;
    }

    public void setSpClass(String spClass) {
        this.spClass = spClass;
    }

    @Column(name = "SPClassName", nullable = true)
    public String getSpClassName() {
        return spClassName;
    }

    public void setSpClassName(String spClassName) {
        this.spClassName = spClassName;
    }

    @Column(name = "SPClassSort", nullable = true)
    public Integer getSpClassSort() {
        return spClassSort;
    }

    public void setSpClassSort(Integer spClassSort) {
        this.spClassSort = spClassSort;
    }

    @Column(name = "SPPrice", precision = 18, scale = 2, nullable = false)
    public BigDecimal getSpPrice() {
        return spPrice;
    }

    public void setSpPrice(BigDecimal spPrice) {
        this.spPrice = spPrice;
    }

    @Column(name = "SPPic", length = 200, nullable = true)
    public String getSpPic() {
        return spPic;
    }

    public void setSpPic(String spPic) {
        this.spPic = spPic;
    }

    @Column(name = "SPFlavor", nullable = true)
    public String getSpFlavor() {
        return spFlavor;
    }

    public void setSpFlavor(String spFlavor) {
        this.spFlavor = spFlavor;
    }

    @Column(name = "SPRIndex", nullable = true)
    public Integer getSprIndex() {
        return sprIndex;
    }

    public void setSprIndex(Integer sprIndex) {
        this.sprIndex = sprIndex;
    }

    @Column(name = "czryid", nullable = true)
    public Integer getCzryid() {
        return czryid;
    }

    public void setCzryid(Integer czryid) {
        this.czryid = czryid;
    }

    @Column(name = "czsj", nullable = true)
    public String getCzsj() {
        return czsj;
    }

    public void setCzsj(String czsj) {
        this.czsj = czsj;
    }

    @Id
    @Column(name = "CBID", nullable = false)
    public Integer getCbId() {
        return cbId;
    }

    public void setCbId(Integer cbId) {
        this.cbId = cbId;
    }

    public String getMrtj() {
        return mrtj;
    }

    public void setMrtj(String mrtj) {
        this.mrtj = mrtj;
    }
}
